<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改小说</title>
<link href="../member/templets/style/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../images/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/templets/js/table_function.js"></script>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
<script language="javascript" type="text/javascript" src="js/story.js"></script>
</head>
<body>
<div id="main">
  <?php include(DEDEMEMBER."../templets/head.htm"); ?>
  <div id="content" class="w960 clearfix">
    <?php include(DEDEMEMBER."./templets/menu.php"); ?>
    <div id="mcpmain">
      <div id="appTab">
        <ul>
          <li class="thisTab"><a href="mybooks.php"><span>小说书目</span></a></li>
          <li><a href="story_list_content.php"><span>小说内容</span></a></li>
        </ul>
      </div>
      <ul class="tabSub">
        <li <?php echo ($arcrank=='')? "class='thisTab'" : "";?>><?php if($books['booktype'] == '1'){?>
              <a href='story_add_photo.php?bookid=<?php echo $books['id'];?>'><span>新增漫画内容</span></a>
              <?php }else{?>
              <a href='story_add_content.php?bookid=<?php echo $books['id'];?>'><span>新增小说内容</span></a>
              <?php }?></li>
        <li <?php echo ($arcrank=='1')? "class='thisTab'" : "";?>><a href="story_list_content.php?bookid=<?php echo $bookid; ?>"><span>小说内容</span></a></li>
        <li <?php echo ($arcrank=='-1')? "class='thisTab'" : "";?>><a href="story_list_chapter.php?bookid=<?php echo $bookid; ?>"><span>书目章节</span></a></li>
        <li <?php echo ($arcrank=='-2')? "class='thisTab'" : "";?>><a href="story_edit.php?bookid=<?php echo $bookid; ?>"><span>书目资料</span></a></li>
      </ul>
      <div id="mainCp">
      <h3 class="meTitle"><strong>&nbsp;修改书目资料</strong></h3>  
        <form class="mL10 mR10 mTB10" name="form1" action="story_edit.php" enctype="multipart/form-data" method="post" onsubmit="return checkSubmitAdd();">
        <input type="hidden" name="dopost" value="edit" />
        <input type="hidden" name="bookid" value="<?php echo $bookid; ?>" />
          <div class="titleBar bgGrass lineB mB10">
            <div class="fRight titSecondary white" style="margin-top:5px;"> <em class="mR10">
              <?php if($books['booktype'] == '1'){?>
              <a href='story_add_photo.php?bookid=<?php echo $books['id'];?>'>新增漫画内容</a>
              <?php }else{?>
              <a href='story_add_content.php?bookid=<?php echo $books['id'];?>'>新增小说内容</a>
              <?php }?>
              
          </div>
          <table cellspacing="1" class="submit" width="100%">
            <tbody>
              <tr>
                <td width="15%" align="right" valign="top">隶属栏目：</td>
                <td><select name="catid" id="catid">
                    <option value='0'>请选择栏目</option>
                    <?php
									foreach($btypes as $k=>$v){
										if($books['catid']==$k) echo "<option value='$k' selected>$v</option>\r\n";
										else echo "<option value='$k'>$v</option>\r\n";
										foreach($stypes[$k] as $kk=>$vv){
											if($books['catid']==$kk)  echo "<option value='$kk' selected> --$vv</option>\r\n";
											else  echo "<option value='$kk'> --$vv</option>\r\n";
										}
									}
								?>
                  </select></td>
              </tr>
              <tr>
                <td align="right" valign="top">标题：</td>
                <td><input name="bookname" type="text" class="text" id="bookname" value="<?php echo $books['bookname'];?>" size="45" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">图书状态：</td>
                <td><input type="radio" name="status" value="0" <?php if($books['status']==0) echo ' checked';  ?> />
                  连载中
                  <input type="radio" name="status" value="1" <?php if($books['status']==1) echo ' checked';  ?> />
                  已完成连载 </td>
              </tr>
              <tr>
                <td align="right" valign="top">作者：</td>
                <td><input name="author" type="text" class="text" id="author"  value="<?php echo $books['author'];?>" size="8" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">上架时间：</td>
                <td><input name="pubdate" type="text" class="text" id="pubdate" value="<?php echo GetDateTimeMk($books['pubdate']);?>" size="22" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">封面图片：</td>
                <td><input name="litpic" type="file" id="litpic" onchange="SeePic($Obj('picview'),$Obj('litpic'));" size="35" />
                  本地直接上传请点击“浏览”按钮
                  <input name="litpicname" type="hidden" id="litpicname" value="<?php echo $books['litpic']; ?>" />
                  <div class="clear"></div>
                  <img src="<?php if($books['litpic']=='') echo 'images/pview.gif'; else echo $books['litpic']; ?>" alt="封面" name="picview" width="120" height="96" id="picview" /> </td>
              </tr>
              <tr>
                <td align="right" valign="top">关键字：</td>
                <td><input name="keywords" type="text" class="text" id="keywords" value="<?php echo $books['keywords']; ?>" size="50" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">摘要：</td>
                <td><textarea style="width:80%" name="description" cols="35" rows="4" id="description"><?php echo $books['description']; ?></textarea></td>
              </tr>
              <tr>
                <td align="right" valign="top">内容：</td>
                <td><?php GetEditor("body",$books['body'],300,"MemberLit");?></td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td height="45" align="right" valign="top">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
        </div>
        <!--主操作区域 -->
      </div>
 <div class="clear"></div>
    </div>
  </div>
<?php include(DEDEMEMBER."./templets/foot.htm"); ?>
</div>
</body>
</html>